package com.kgcx.push.service;

import com.kgcx.push.entity.LoginLog;
import com.kgcx.push.mapper.LoginMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 何凯
 * @version 0.1
 * @description
 * @time 2018/5/9 15:24
 * @since 0.1
 */
@Service
public class LoginService {
    @Autowired
    private LoginMapper loginMapper;

    /**
     * 查询所有
     * @return
     */
    public List<LoginLog> selectList(){
        return loginMapper.selectAll();
    }

    /***
     * 清空所有数据
     */
    public void deleteAll(){ loginMapper.delete(new LoginLog()); }
}
